-- GENERATED SPELL FOR [Garl Grimgrizzle] --


function spell0_32710(pUnit, Event) --@Shoot Gun,n/a--
pUnit:FullCastSpellOnTarget(61353,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32710', 2000, 1)
end

function spell1_32710(pUnit, Event) --@Summon Tabitha,Self--
pUnit:FullCastSpellOnTarget(61615,pUnit)
pUnit:RegisterEvent('Sorts_32710', 639, 1)
end

function Sorts_32710(pUnit, Event)
local choix_sorts_32710 = math.random(0, 1)
if choix_sorts_32710 == 0 then
pUnit:RegisterEvent('spell0_32710', 1, 1)
end
if choix_sorts_32710 == 1 then
pUnit:RegisterEvent('spell1_32710', 1, 1)
end
end

function mob32710_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32710', math.random(1500, 3000), 1)
end

function mob32710_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32710_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32710_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32710, 1, 'mob32710_Action')
RegisterUnitEvent(32710, 2, 'mob32710_Leave')
RegisterUnitEvent(32710, 3, 'mob32710_Kill')
RegisterUnitEvent(32710, 4, 'mob32710_Die')
